﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infrastructure.Core;
using Domain.Entities;
using Domain.Core;

namespace Infrastructure
{
    /// <summary>
    /// background数据库上下文
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BackgroundRepository<T> : DbContextRepository<T> where T : class
    {
        public BackgroundRepository()
            : this(null)
        { }
        public BackgroundRepository(IUnitOfWork iUnitWork)
            : base(iUnitWork ?? new backgroundEntities())
        { }

    }
}
